FROM openjdk:17-jdk-alpine
LABEL maintainer="yfli@qq.com"

COPY target/*.jar /app.jar

ENV JAVA_OPTS=""
ENV PARAMS=""

EXPOSE 8080

ENTRYPOINT [ "sh", "-c", "java -Djava.security.egd-file:/dev/./urandom $JAVA_OPTS -jar /app.jar $PARAMS" ]